package com.laolei.redis.model;

import java.io.Serializable;

import org.springframework.data.annotation.Id;
import org.springframework.data.redis.core.RedisHash;
import org.springframework.data.redis.core.index.Indexed;

@RedisHash
public class User implements Serializable{
		private static final long serialVersionUID = 1L;
		@Id private Integer userid;
		@Indexed private String last_name;
		private String fast_name;
		public User() {
		}
		public User(Integer userid,String fast_name,String last_name) {
			this.userid=userid;
			this.fast_name=fast_name;
			this.last_name=last_name;
		}
		public Integer getUserid() {
			return userid;
		}
		public void setUserid(Integer userid) {
			this.userid = userid;
		}
		public String getLast_name() {
			return last_name;
		}
		public void setLast_name(String last_name) {
			this.last_name = last_name;
		}
		public String getFast_name() {
			return fast_name;
		}
		public void setFast_name(String fast_name) {
			this.fast_name = fast_name;
		}
		@Override
		public String toString() {
			return "User[userid="+userid+",fast_name="+fast_name+",last_name="+last_name+"]";
		}
	}